package fun.pengzh.sssdnsy.config;

import fun.sssdnsy.client.annotation.Conf;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Desc 示例代码
 * @Author pengzh
 * @Since 2023-03-31
 */
@Component
public class DemoConf {

    @Conf("default.key01")
    public String key01;

    @Conf("default.key02")
    public String key02;

    @Conf("default.key03")
    public String key03;

    @Conf("test.date")
    public String date;

    @Conf("test.number")
    public Long number;


    public String xml = "XML方式配置，请前往 (xxl-conf-sample-spring) 项目参考查看，springboot项目不推荐采用该方式";

    public void setXml(String xml) {
        this.xml = xml;
    }


}
